package com.kingint.mbg.ser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.kingint.mbg.bas.entity.BasGoods;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 发布赶房表
 * </p>
 *
 * @author wxh
 * @since 2021-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SerRushHouse对象", description="发布赶房表")
public class SerRushHouse implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "对应总工单id")
    @TableField("work_id")
    private Integer workId;

    @ApiModelProperty(value = "查房工单id(总单表中的id)")
    @TableField("check_work_id")
    private Integer checkWorkId;

    @ApiModelProperty(value = "清洁人员")
    @TableField("clean_user_id")
    private Long cleanUserId;

    @ApiModelProperty("清洁人员名称")
    @TableField(exist = false)
    private String cleanUserName;

    @ApiModelProperty(value = "检查人员")
    @TableField("check_user_id")
    private Long checkUserId;


    @ApiModelProperty("检查人员")
    @TableField(exist = false)
    private String checkUserName;

    @ApiModelProperty(value = "10s未接单是否同步其他工作人员（0，是，1，否）")
    @TableField("is_sync")
    private Integer isSync;

    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "布草/易耗品相关信息josn（对应bas_goods表的信息，记录时间数量）")
    @TableField("arrange_content")
    private String arrangeContent;

    @ApiModelProperty(value = "布草/易耗品状态（0，未完成，1，完成）")
    @TableField("arrange_status")
    private Integer arrangeStatus;

    @ApiModelProperty(value = "查房状态（0，未完成，1，完成）")
    @TableField(exist = false)
    private Integer checkStatus;

    @ApiModelProperty(value = "清洁状态（0，未开始，1，开始，2，完成，3，无需清洁）")
    @TableField("clean_status")
    private Integer cleanStatus;

    @ApiModelProperty(value = "开始时间（清洁开始时间）")
    @TableField("start_time")
    private Date startTime;

    @ApiModelProperty(value = "完成时间")
    @TableField("completion_time")
    private Date completionTime;

    @ApiModelProperty("工单号")
    @TableField(exist = false)
    private String orderSn;

    @ApiModelProperty("房间号")
    @TableField(exist = false)
    private String roomNum;

    @ApiModelProperty("布草/易耗品集合")
    @TableField(exist = false)
    private List<BasGoods> arrangeList;
}
